/*
 * This file is part of shared-drawing.
 * shared-drawing is free software: you can redistribute it and/or modify it 
 * under the terms of the GNU General Public License as published by the Free
 * Software Foundation, either version 3 of the License, or (at your option )
 * any later version. shared-drawing is distributed in the hope that it will
 * be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
 * Public License for more details.
 * You should have received a copy of the GNU General Public License along with 
 * shared-drawing. If not, see http://www.gnu.org/licenses/.
 */

package shapes;

import SharedDrawing.FourCornersShape;
import primitives.P_Rectangle;

public class Rectangle extends FourCornersShape
{
	private P_Rectangle obj;
	
	public Rectangle()
	{
		obj = new P_Rectangle();
		 m_composingElements.add(obj);
	}
	
	@Override
	public void setShape() 
	{
		setCorners();
		obj.setShape(m_location.x, m_location.y, m_size.x, m_size.y);
	}
}
